<?php
include '../../init.php';
// 判断用户是否登录
is_login();

include DIR_CORE.'mysql.php';
$title = '沐水莲心-编辑多选题';

//接收要编辑题目的id值
$id = $_GET['id'];
//echo $id;

//下拉框
$sql = "select * from type";
$res = mysqli_query($link, $sql);
//定义空数组存数据
$list = array();
//遍历数据库，取数据
while ($row1 = mysqli_fetch_assoc($res)) {
    $list[]=$row1;
}
//var_dump($list);

//取题目信息
$tsql = "select *from multiple where id ='$id'";
$resurt = mysqli_query($link, $tsql);
$row = mysqli_fetch_assoc($resurt);

//var_dump($row);
include DIR_VIEW.'admin/edit_multiple.html';
